package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import Entidades.ContenidoEnt;
import java.util.List;

public final class Menu_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List<String> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList<String>(1);
    _jspx_dependants.add("/./Menu2.jsp");
  }

  private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;

  public java.util.List<String> getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;
      _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\n");
      out.write("\n");
      out.write("\n");


    int busqueda = request.getAttribute("busqueda") == null ? -1 : Integer.parseInt(request.getAttribute("busqueda").toString());

    List<ContenidoEnt> contenido;
    contenido = request.getAttribute("lstContenido") != null ? (List<ContenidoEnt>) request.getAttribute("lstContenido") : null;

      out.write("\n");
      out.write("\n");
      out.write("<html >\n");
      out.write("    <head>\n");
      out.write("\n");
      out.write("        <script type=\"text/javascript\" src=\"js/tabber.js\"></script>\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/example.css\" TYPE=\"text/css\" MEDIA=\"screen\"/>\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/example-print.css\" TYPE=\"text/css\" MEDIA=\"print\"/>\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/MenuPrincipal.css\" TYPE=\"text/css\" MEDIA=\"screen\"/>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/general.js\"></script>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/jquery-1.5.2.min.js\"></script>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/Funciones.js\"></script>\n");
      out.write("        <script type='text/javascript' src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js\"/>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/jquery-1.4.2.min.js\"></script>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/jquery.fixedMenu.js\"></script>\n");
      out.write("        <script type=\"text/jav ascript\" src=\"js/general.js\"></script>\n");
      out.write("        <link rel=\"stylesheet\" type=\"text/css\" href=\"css/fixedMenu_style2.css\" />\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/style.css\" />\n");
      out.write("\n");
      out.write("        <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styleMenu.css\" />\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("        <script language=\"javaScript\" type=\"text/javascript\">\n");
      out.write("\n");
      out.write("            function inicio() {\n");
      out.write("                window.location.href = \"./ContenidoShow\";\n");
      out.write("            }\n");
      out.write("\n");
      out.write("        </script>\n");
      out.write("    </head>\n");
      out.write("\n");
      out.write("    <body>\n");
      out.write("        <div id=\"contenedorFondo\">\n");
      out.write("\n");
      out.write("           \n");
      out.write("            <div id=\"contenedorCarrusel\">\n");
      out.write("                <img src=\"imagenes/carrusel.png\" style=\"width: 1230px;height: 374px;margin: -281px;position: absolute;left: 194px; \"/>\n");
      out.write("                <div style=\"text-align: right;\">\n");
      out.write("\n");
      out.write("                    <a href=\"./CerrarSesion\" onclick=\"cerrarSession();\" style=\"height: 374px;margin: -317px;position: absolute;left: 247px;  text-decoration:none; color: #f7db64;\"/>Cerrar Sesion</a>\n");
      out.write("                </div>\n");
      out.write("            </div>  \n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("            <div id=\"contenedorSeparador\">\n");
      out.write("                <img src=\"imagenes/Separador.png\" style=\"width: 262px;height: 94px;margin: -63px;position: absolute;left: 90px; \"/>\n");
      out.write("            </div>\n");
      out.write(" <div style=\"margin:34%; position: relative;left: -24%; width: 100%; \"> \n");
      out.write("                ");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("    <ul class=\"dark_menu\">\n");
      out.write("\n");
      out.write("        <li><a href=\"./ContenidoShow\" onclick=\"inicio();\" class=\"selected\">Inicio</a></li>\n");
      out.write("\n");
      out.write("        <li>\n");
      out.write("            <a href=\"#\">Usuarios</a>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("            <ul>\n");
      out.write("\n");
      out.write("                <li><a href=\"./usuarioListar.jsp\">Listar Usuarios</a></li>\n");
      out.write("\n");
      out.write("                <li><a href=\"./usuarioIngresar.jsp\">Ingresar Usuarios</a></li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("\n");
      out.write("        <li>\n");
      out.write("\n");
      out.write("            <a href=\"#\">Clientes</a>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("            <ul>\n");
      out.write("\n");
      out.write("                <li><a href=\"#\">Listar Clientes</a></li>\n");
      out.write("\n");
      out.write("                <li><a href=\"./clienteIngresar.jsp\">Ingresar Cliente</a></li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("\n");
      out.write("        <li>\n");
      out.write("\n");
      out.write("            <a href=\"#\">Instructores</a>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("            <ul>\n");
      out.write("\n");
      out.write("                <li><a href=\"#\">Listar Instructores</a></li>\n");
      out.write("\n");
      out.write("                <li><a href=\"./instructorIngresar.jsp\">Ingresar Instructores</a></li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("\n");
      out.write("        <li>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("\n");
      out.write("\n");
      out.write("        <li>\n");
      out.write("\n");
      out.write("            <a href=\"#\">Maquinas</a>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("            <ul>\n");
      out.write("\n");
      out.write("                <li><a href=\"./maquinaListar.jsp\">Listar Maquinas</a></li>\n");
      out.write("\n");
      out.write("                <li><a href=\"./maquinaIngresar.jsp\">Ingresar Nueva Maquina</a></li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("\n");
      out.write("\n");
      out.write("        <li>\n");
      out.write("\n");
      out.write("            <a href=\"#\">Ventas</a>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("            <ul>\n");
      out.write("\n");
      out.write("                <li><a href=\"./ventaIngresar.jsp\">Ingresar Nueva Venta</a></li>\n");
      out.write("\n");
      out.write("                <li><a href=\"./ventaListar.jsp\">Listar Ventas</a></li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("\n");
      out.write("        <li>\n");
      out.write("            <a href=\"#\">Planes</a>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("            <ul>\n");
      out.write("\n");
      out.write("                <li><a href=\"./usuarioListar.jsp\">Listar Planes</a></li>\n");
      out.write("\n");
      out.write("                <li><a href=\"./planesIngresar.jsp\">Ingresar Planes</a></li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("\n");
      out.write("        <li>\n");
      out.write("\n");
      out.write("            <a href=\"#\">Contenido</a>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("            <ul>\n");
      out.write("\n");
      out.write("                <li><a href=\"./contenidoIngresar.jsp\">Ingresar Nuevo Contenido</a></li>\n");
      out.write("\n");
      out.write("                <li><a href=\"./contenidoListar.jsp\">Listar Contenido</a></li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("        \n");
      out.write("         <li>\n");
      out.write("\n");
      out.write("            <a href=\"#\">General</a>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("            <ul>\n");
      out.write("\n");
      out.write("                <li><a href=\"\">Tipo Instructor</a></li>\n");
      out.write("\n");
      out.write("                <li><a href=\"\">Fichas técnicas </a></li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("            <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("        </li>\n");
      out.write("\n");
      out.write("\n");
      out.write("    </ul>\n");
      out.write("\n");
      out.write("        <br>\n");
      out.write("        <br>\n");
      out.write("        <br>\n");
      out.write("        <br>");
      out.write("    \n");
      out.write("            </div>\n");
      out.write("            <br>\n");
      out.write("            <br>\n");
      out.write("\n");
      out.write("            <div align=\"center\" style=\"width: 108%;\n");
      out.write("                 height: 129%;\n");
      out.write("                 left: -320px;\n");
      out.write("                 margin: 537px;\n");
      out.write("                 position: absolute;\" >\n");
      out.write("                ");

                    if (busqueda == 1) {
                
      out.write("\n");
      out.write("                <table  style=\"width: 40%;height: 40%;\" > \n");
      out.write("\n");
      out.write("                    <tr>\n");
      out.write("\n");
      out.write("                        <td >\n");
      out.write("                            <p style=\"font-family: sans-serif;font-size: 531%;font-style: normal\">\n");
      out.write("\n");
      out.write("                                ");
      out.print(contenido.get(0).getTitulo());
      out.write(" \n");
      out.write("                            </p>\n");
      out.write("\n");
      out.write("                            <br>\n");
      out.write("                            <br>\n");
      out.write("                            <p style=\"font-family: sans-serif;font-size: 411%;font-style: normal\">\n");
      out.write("\n");
      out.write("                                ");
      out.print(contenido.get(0).getContenido());
      out.write("\n");
      out.write("                            </p>\n");
      out.write("\n");
      out.write("                        </td>\n");
      out.write("                        <td> ");
      out.print(contenido.get(0).getTitulo());
      out.write(" \n");
      out.write("\n");
      out.write("                            <br>\n");
      out.write("                            <br>\n");
      out.write("                            ");
      out.print(contenido.get(1).getContenido());
      out.write(" </td>\n");
      out.write("\n");
      out.write("                    </tr>\n");
      out.write("\n");
      out.write("                    <tr>\n");
      out.write("\n");
      out.write("                        <td>\n");
      out.write("                            ");
      out.print(contenido.get(0).getTitulo());
      out.write(" \n");
      out.write("                            <br>\n");
      out.write("                            <br>\n");
      out.write("\n");
      out.write("                            ");
      out.print(contenido.get(2).getContenido());
      out.write(" \n");
      out.write("                        </td>\n");
      out.write("                        <td> ");
      out.print(contenido.get(0).getTitulo());
      out.write(" \n");
      out.write("                            <br>\n");
      out.write("                            <br>\n");
      out.write("\n");
      out.write("                            ");
      out.print(contenido.get(3).getContenido());
      out.write(" </td>\n");
      out.write("\n");
      out.write("                    </tr>\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("                </table>\n");
      out.write("\n");
      out.write("                ");
 }
      out.write("\n");
      out.write("\n");
      out.write("            </div>\n");
      out.write("\n");
      out.write("\n");
      out.write("        </div>\n");
      out.write("\n");
      out.write("    </body>\n");
      out.write("\n");
      out.write("</html>\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
